"""共享字符串"""
# encoding=utf-8
from multiprocessing import Process, Manager, Value
from ctypes import c_char_p


def greet(shareStr):
    shareStr.value = shareStr.value + ", World!"


if __name__ == '__main__':
    manager = Manager()
    shareStr = manager.Value(c_char_p, "Hello")
    process = Process(target=greet, args=(shareStr,))
    process.start()
    process.join()
    print(shareStr.value)
